Method, apparatus, and client for displaying media information, and method and apparatus for displaying graphical controls

ABSTRACT

A method for displaying media information includes: receiving a media information request sent by an originating client, where the media information request carries media information and destination client information; parsing the received media information to obtain text information corresponding to the media information; synthesizing information related to the media information with information related to the text information to obtain composite information; and sending the composite information to a destination client according to the destination client information, so that the destination client obtains the media information and the text information according to the composite information and displays the media information and the text information.

CROSS-REFERENCE TO RELATED APPLICATIONS

This application is a continuation of U.S. patent application Ser. No.16/854,628, filed on Apr. 21, 2020, which is a continuation of U.S.patent application Ser. No. 15/537,338, filed on Jun. 16, 2017, now U.S.Pat. No. 10,637,806, which is a national stage of InternationalApplication No. PCT/CN2014/073475, filed on Mar. 14, 2014. TheInternational Application claims priority to Chinese Patent ApplicationNo. 201310274892.X, filed on Jul. 2, 2013. All of the aforementionedpatent applications are hereby incorporated by reference in theirentireties.

TECHNICAL FIELD

The present invention relates to the mobile Internet field, and inparticular, to a method, an apparatus, and a client for displaying mediainformation, and a method and an apparatus for displaying graphicalcontrols.

BACKGROUND

As mobile Internet technologies are popularized and applied, mediainformation communications software such as WeChat and MiTalk is popularwith numerous user groups. Currently, in a media informationcommunication process performed by using such social communicationssoftware, because only media links of media information can bedisplayed, it is very difficult for a user to browse instantcommunication records. FIG. 1 shows a schematic diagram of a userinterface for displaying media information in the prior art aftermultiple pieces of media information are exchanged in a group chat.Media information content of the time cannot be determined ultimatelywhen browsed after a period of time. To browse the media informationcontent of the time, the user has to repeatedly click media links of allmedia information. When the media information content is browsed in thismanner, a lot of storage space and processes on a terminal need to beoccupied, and a large quantity of central processing unit (CPU)resources are occupied. Consequently, parallel speeds of other processesare affected, and efficiency of obtaining the media information contentis low.

SUMMARY

In view of this, an objective of the present invention is to provide amethod, an apparatus, and a client for displaying media information, anda method and an apparatus for displaying graphical controls, so as toreduce storage space and processes occupied on a terminal in a mediainformation communication process, reduce consumption of CPU resources,and improve efficiency of obtaining media information content.

According to a first aspect, a method for displaying media informationis provided and includes: receiving a media information request sent byan originating client, where the media information request carries mediainformation and destination client information; parsing the receivedmedia information to obtain text information corresponding to the mediainformation; synthesizing information related to the media informationwith information related to the text information to obtain compositeinformation; and sending the composite information to a destinationclient according to the destination client information, so that thedestination client obtains the media information and the textinformation according to the composite information and displays themedia information and the text information.

In a first possible implementation of the first aspect, the informationrelated to the media information includes the media information or amedia information identifier, and the information related to the textinformation includes the text information or a text informationidentifier.

With reference to the first aspect or the first possible implementationof the first aspect, in a second possible implementation of the firstaspect, the text information includes at least one of the following:text content corresponding to the media information or a keywordcorresponding to text content.

With reference to the first aspect or the first possible implementationof the first aspect or the second possible implementation of the firstaspect, in a third possible implementation of the first aspect, theinformation related to the media information is the media information,and the information related to the text information is the textinformation; the synthesizing information related to the mediainformation with information related to the text information to obtaincomposite information specifically includes: synthesizing the mediainformation with the text information into composite format information;the sending the composite information to a destination client isspecifically: sending the composite format information to thedestination client; and that the destination client obtains the mediainformation and the text information according to the compositeinformation is specifically that the destination client obtains themedia information and the text information by parsing the compositeformat information.

With reference to the first aspect or the first possible implementationof the first aspect or the second possible implementation of the firstaspect, in a fourth possible implementation of the first aspect, themethod further includes: creating a data association table according tothe text information, and establishing an association relationshipbetween the text information identifier and the text information.

With reference to the fourth possible implementation of the firstaspect, in a fifth possible implementation of the first aspect, theinformation related to the media information is the media information,and the information related to the text information is the textinformation identifier; the synthesizing information related to themedia information with information related to the text information toobtain composite information is specifically: querying the dataassociation table according to the text information to obtain the textinformation identifier corresponding to the text information, andsynthesizing the media information with the text information identifierto obtain composite information; and that the destination client obtainsthe media information and the text information according to thecomposite information specifically includes: the destination clientobtains the media information according to the composite information,and obtains the corresponding text information by parsing the textinformation identifier in the composite information.

With reference to the second possible implementation of the firstaspect, in a sixth possible implementation of the first aspect, themethod further includes: creating a data association table according tothe media information, the text content, and the keyword, and separatelyestablishing association relationships between the media informationidentifier and the media information, a text content identifier and thetext content, and a keyword identifier and the keyword.

With reference to the sixth possible implementation of the first aspect,in a seventh possible implementation of the first aspect, theinformation related to the media information is the media informationidentifier, and the information related to the text information is thetext information identifier; the synthesizing information related to themedia information with information related to the text information toobtain composite information is specifically: querying the dataassociation table according to the media information and the textinformation to obtain the media information identifier corresponding tothe media information, the text content identifier corresponding to thetext content, and the keyword identifier corresponding to the keyword,and synthesizing the media information identifier with the text contentidentifier and the keyword identifier to obtain composite information;and that the destination client obtains the media information and thetext information according to the composite information specificallyincludes: the destination client obtains the corresponding mediainformation by parsing the media information identifier in the compositeinformation; the destination client obtains the corresponding textcontent by parsing the text content identifier in the compositeinformation; and the destination client obtains the correspondingkeyword by parsing the keyword identifier in the composite information.

With reference to the third possible implementation of the first aspect,in an eighth possible implementation of the first aspect, the compositeformat information includes an audio file header, an audio bit stream,and an audio extension field; a reserved field in the audio file headeridentifies an offset of information of the audio extension field in anentire audio file of the media information; and the information of theaudio extension field includes the text information corresponding to themedia information.

With reference to the first aspect and any one of the foregoing possibleimplementations of the first aspect, in a ninth possible implementationof the first aspect, the text information is sent to the originatingclient, so that the originating client displays the media informationand the text information.

According to a second aspect, a method for displaying media informationincludes: receiving composite information sent by a server, where thecomposite information is obtained by the server after the server parsesreceived media information to obtain text information and synthesizesinformation related to the media information with information related tothe text information; parsing the composite information to obtain themedia information and the text information; and displaying the mediainformation and the text information.

In a first possible implementation of the second aspect, the textinformation includes at least one of the following: text contentcorresponding to the media information or a keyword corresponding totext content.

With reference to the second aspect, in a second possible implementationof the second aspect, the information related to the media informationis the media information, and the information related to the textinformation is a text information identifier; and the parsing thecomposite information to obtain the media information and the textinformation is specifically: parsing the text information identifier inthe composite information to obtain the corresponding text information.

With reference to the first possible implementation of the secondaspect, in a third possible implementation of the second aspect, theinformation related to the media information is a media informationidentifier, and the information related to the text information is atext information identifier; and the parsing the composite informationto obtain the media information and the text information isspecifically: parsing the media information identifier in the compositeinformation to obtain the corresponding media information; parsing atext content identifier in the composite information to obtain thecorresponding text content; and parsing a keyword identifier in thecomposite information to obtain the corresponding keyword.

In a fourth possible implementation of the second aspect, the compositeinformation is composite format information, and the composite formatinformation includes an audio file header, an audio bit stream, and anaudio extension field; a reserved field in the audio file headeridentifies an offset of information of the audio extension field in anentire audio file of the media information; and the information of theaudio extension field includes the text information corresponding to themedia information.

In a fifth possible implementation of the second aspect, the displayingthe media information and the text information is specifically:displaying, according to a switching instruction, the media information,or the media information and the text information.

According to a third aspect, a method for displaying graphical controlsis provided, where the method is applied to a computer system, and thecomputer system includes a display screen and an application program,where the method includes:

-   -   invoking the application program, and displaying a user        interface of the application program on the display screen; and    -   invoking multiple control functions in the application program,        and displaying graphical controls corresponding to the multiple        control functions in the user interface of the application        program, where the graphical controls include at least a contact        graphical control, a media information graphical control, and a        text graphical control, where the contact graphical control is        configured to display contact information, the media information        graphical control is configured to play corresponding media        information, and the text graphical control is configured to        display text information corresponding to the media information.

In a first possible implementation of the third aspect, the textgraphical control further includes a text content graphical controland/or a keyword graphical control, where the text content graphicalcontrol is configured to display text content corresponding to the mediainformation, and the keyword graphical control is configured to displaya keyword corresponding to the text content corresponding to the mediainformation.

With reference to the third aspect and the first possible implementationof the third aspect, in a second possible implementation of the thirdaspect, the method includes: receiving a switching instruction, andswitching, according to the switching instruction, between displayingthe media information graphical control in the user interface of theapplication program and displaying the media information graphicalcontrol and the text graphical control in the user interface of theapplication program.

In a third possible implementation of the third aspect, the methodincludes: displaying a switching function graphical control in the userinterface of the application program, where the switching functiongraphical control is configured to receive the switching instruction.

According to a fourth aspect, an apparatus for displaying mediainformation includes an interaction unit, a recognition unit, and asynthesis unit. The interaction unit receives a media informationrequest sent by an originating client, where the media informationrequest carries media information and destination client information,and further sends composite information to a destination clientaccording to the destination client information carried in the mediainformation request; the recognition unit parses the media informationcarried in the received media information request to obtain textinformation corresponding to the media information; and the synthesisunit synthesizes information related to the media information withinformation related to the text information to obtain the compositeinformation.

In a first possible implementation of the fourth aspect, the compositeinformation is specifically composite format information, and thesynthesis unit further synthesizes the media information with the textinformation into the composite format information.

In a second possible implementation of the fourth aspect, the apparatusfurther includes a processing unit and a storage unit. The processingunit creates a data association table, and establishes an associationrelationship between a text information identifier and the textinformation; the interaction unit further receives a request sent by theclient for querying the text information identifier; the storage unitstores the data association table of the association relationshipbetween the text information identifier and the text information; andthe interaction unit further sends the text information to theoriginating client and the destination client.

In a third possible implementation of the fourth aspect, the apparatusfurther includes a processing unit and a storage unit. The processingunit further creates a data association table, and establishesassociation relationships between a media information identifier and themedia information, a text content identifier and the text content, and akeyword identifier and the keyword; the interaction unit furtherreceives a request sent by the client for querying the media informationidentifier, the text content identifier, and the keyword identifier; thestorage unit stores the data association table of the associationrelationships between the media information identifier and the mediainformation, the text content identifier and the text content, and thekeyword identifier and the keyword; and the interaction unit furthersends the media information, the text content, and the keyword to theoriginating client and the destination client.

According to a fifth aspect, a client for displaying media informationincludes an interaction unit, a parsing unit, and a display unit. Theinteraction unit receives composite information sent by a server, wherethe composite information is obtained by the server after the serverparses received media information to obtain text information andsynthesizes information related to the media information withinformation related to the text information; the paring unit parses thecomposite information to obtain the media information and the textinformation; and the display unit displays the media information and thetext information.

In a first possible implementation of the fifth aspect, the interactionunit further sends a query request to the server, requesting the serverto query the text information corresponding to a text informationidentifier; and the interaction unit further receives the textinformation sent by the server.

In a second possible implementation of the fifth aspect, the interactionunit further sends a query request to the server, requesting the serverto query the media information corresponding to a media informationidentifier, text content corresponding to a text content identifier, andkeyword information corresponding to a keyword identifier; and theinteraction unit further receives the media information, the textcontent, and the keyword sent by the server.

According to a sixth aspect, an apparatus for displaying graphicalcontrols is provided, where the apparatus includes a display screen, andthe apparatus further includes a control unit, a control function unit,and a display unit. The control unit is configured to invoke anapplication program, and instruct the display unit to display a userinterface of the application program on the display screen; the controlfunction unit is configured to invoke multiple control functions in theapplication program, and instruct the display unit to display graphicalcontrols corresponding to the multiple control functions in the userinterface of the application program, where the graphical controlsinclude at least a contact graphical control, a media informationgraphical control, and a text graphical control, where the contactgraphical control is configured to display contact information, themedia information graphical control is configured to play correspondingmedia information, and the text graphical control is configured todisplay text information corresponding to the media information; and thedisplay unit is configured to display the user interface of theapplication program on the display screen, and display the graphicalcontrols corresponding to the multiple control functions in the userinterface of the application program, where the graphical controlsinclude at least the contact graphical control, the media informationgraphical control, and the text graphical control.

In a first possible implementation of the sixth aspect, the apparatusfurther includes a control switching unit. The control switching unit isconfigured to instruct the display unit to switch between displaying themedia information graphical control in the user interface of theapplication program and displaying the media information graphicalcontrol and the text graphical control in the user interface of theapplication program; and the display unit is further configured todisplay, according to the instruction of the control switching unit, themedia information graphical control in the user interface of theapplication program, or the media information graphical control and thetext graphical control in the user interface of the application program.

In a second possible implementation of the sixth aspect, the displayunit is further configured to display a switching function graphicalcontrol corresponding to the control switching unit in the userinterface of the application program, where the switching functiongraphical control is configured to receive a switching instruction, andinstruct, according to the switching instruction, the display unit todisplay the media information graphical control in the user interface ofthe application program or display the media information graphicalcontrol and the text graphical control in the user interface of theapplication program.

According to a seventh aspect, a method for displaying media informationincludes: receiving a media information request, where the mediainformation request carries media information; parsing the receivedmedia information to obtain text information corresponding to the mediainformation; and displaying the media information and the textinformation.

In a first possible implementation of the seventh aspect, the methodfurther includes: displaying, according to a switching instruction, themedia information, or the media information and the text information.

According to an eighth aspect, an apparatus for displaying mediainformation includes an interaction unit, a recognition unit, and adisplay unit. The interaction unit is configured to receive a mediainformation request, where the media information request carries mediainformation; the recognition unit is configured to parse the receivedmedia information to obtain text information corresponding to the mediainformation; and the display unit is configured to display the mediainformation and the text information.

In a first possible implementation of the eighth aspect, the interactionunit is further configured to receive a switching instruction, andinstruct the display unit to display the media information or displaythe media information and the text information.

According to the foregoing technical solutions, features of mediainformation and text information are displayed on a client. For example,a server synthesizes information related to the media information withinformation related to the text information to obtain compositeinformation; and the client receives the composite information anddisplays the media information and the text information. Therefore, thetext information corresponding to the media information is retrievedquickly, and efficiency of obtaining media information content isimproved.

BRIEF DESCRIPTION OF DRAWINGS

To describe the technical solutions in the embodiments of the presentinvention more clearly, the following briefly describes the accompanyingdrawings required for describing the embodiments of the presentinvention. Apparently, the accompanying drawings in the followingdescription show merely some embodiments of the present invention, and aperson of ordinary skill in the art may still derive other drawings fromthese accompanying drawings without creative efforts.

FIG. 1 is a schematic diagram of a user interface for displaying mediainformation in the prior art;

FIG. 2 is a schematic flowchart of a method for displaying mediainformation according to an embodiment of the present invention;

FIG. 3 is a schematic flowchart of a method for displaying speechinformation according to another embodiment of the present invention;

FIG. 4 is a schematic structural diagram of composite format informationaccording to an embodiment of the present invention;

FIG. 5 is an exemplary diagram of composite format information accordingto another embodiment of the present invention;

FIG. 6A is a schematic diagram of a user interface for displaying speechinformation according to an embodiment of the present invention;

FIG. 6B is a schematic diagram of a user interface for displaying speechinformation according to an embodiment of the present invention;

FIG. 7 is a schematic flowchart of a method for displaying speechinformation according to another embodiment of the present invention;

FIG. 8 is a schematic flowchart of a method for displaying speechinformation according to another embodiment of the present invention;

FIG. 9 is a schematic flowchart of a method for displaying mediainformation according to another embodiment of the present invention;

FIG. 10 is a schematic diagram of an apparatus 100 for displaying mediainformation according to an embodiment of the present invention;

FIG. 11 is a schematic diagram of an apparatus 100 for displaying mediainformation according to another embodiment of the present invention;

FIG. 12 is a schematic diagram of a client 120 for displaying mediainformation according to another embodiment of the present invention;

FIG. 13 is a schematic diagram of a method for displaying graphicalcontrols according to an embodiment of the present invention;

FIG. 14A is a schematic diagram of an apparatus 140 for displayinggraphical controls according to an embodiment of the present invention;

FIG. 14B is a schematic diagram of an apparatus 140 for displayinggraphical controls according to another embodiment of the presentinvention;

FIG. 15 is a schematic diagram of a user interface for displaying mediainformation according to an embodiment of the present invention;

FIG. 16 is a schematic diagram of an apparatus 160 for displaying mediainformation according to another embodiment of the present invention;

FIG. 17 is a schematic block diagram of an apparatus 170 for displayingmedia information according to another embodiment of the presentinvention; and

FIG. 18 is a schematic block diagram of an apparatus 180 for displayingmedia information according to another embodiment of the presentinvention.

DESCRIPTION OF EMBODIMENTS

The following clearly describes the technical solutions in theembodiments of the present invention with reference to the accompanyingdrawings in the embodiments of the present invention. Apparently, thedescribed embodiments are a part rather than all of the embodiments ofthe present invention. All other embodiments obtained by a person ofordinary skill in the art based on the embodiments of the presentinvention without creative efforts shall fall within the protectionscope of the present invention.

Currently, in a media information communication process performed by auser by using social communications software, because only media linksof media information can be displayed, when all users use this methodfor communication, it is very difficult to browse communication records,and user experience is very poor. To browse media information content ofthe time, the user can only click media links of all media informationand listen to each piece of media information again. When the mediainformation content is browsed in this manner, a lot of storage spaceand processes on a terminal need to be occupied, and a large quantity ofCPU resources are occupied. Consequently, parallel speeds of otherprocesses are affected, and efficiency of obtaining the mediainformation content is low. An embodiment of the present inventionprovides a method for displaying media information visually, so as toquickly retrieve text information corresponding to media information andimprove efficiency of obtaining media information content.

FIG. 2 is a schematic flowchart of a method for displaying mediainformation according to an embodiment of the present invention. Theembodiment of the method for displaying media information includes thefollowing steps.

S201. A server receives a media information request sent by anoriginating client, where the media information request carries mediainformation and destination client information.

The media information request includes prerecorded media information andthe destination client information.

The media information may be audio information, video information, orthe like.

The originating client may prerecord a segment of media information tobe sent to a destination client, and when the media information needs tobe sent to the destination client, send the media information request tothe server. The media information request carries the media informationand the destination client information.

The destination client information may be specifically a number, anaddress, a mobile phone number, a nickname, or the like of the client.

S202. The server parses the received media information to obtain textinformation corresponding to the media information.

The server parses the media information carried in the received mediainformation request to obtain the text information corresponding to themedia information. That the server parses the media information isspecifically that the server performs media recognition according to themedia information to obtain text content corresponding to the mediainformation.

The server may further determine, according to the recognized textcontent corresponding to the media information, a keyword correspondingto the text content, for example, a tag or other feature informationcorresponding to the media information. The other feature informationcorresponding to the media information may be “angry”, “happy”, “sad”,“anxious”, “surprised”, or the like that is used to describe a mood of auser. An expression of a user mood may be recognized according to otherfeature information corresponding to speech information and a word usedto describe the user mood. This feature may be displayed on the clientas an optional information display option. The other feature informationcorresponding to the media information may be replaced or changed. Thisis not specifically limited in this embodiment of the present invention.

After the server completes parsing of the media information, the servermay obtain the text information corresponding to the media information,for example, the text content corresponding to the media information andthe keyword corresponding to the text content.

In this embodiment of the present invention, the text information mayinclude the text content, or the keyword, or the text content and thekeyword. The keyword may include the tag, or the other featureinformation corresponding to the media information, or the tag and theother feature information corresponding to the media information. Thetag is a brief summary of the text content. The other featureinformation corresponding to the media information may be specifically auser mood analyzed by the server according to media, a speaking speed,an intonation, and a meaning of the media information, for example, afeature such as “angry”, “happy”, “sad”, “anxious”, or “surprised”. Thisfeature may be displayed on the client as an optional informationdisplay option. The other feature information corresponding to the mediainformation may be replaced or changed. This is not specifically limitedin this embodiment of the present invention.

For example, the text content corresponding to the media information is“It is a holiday tomorrow. I invite everyone to dinner”.

The tag corresponding to the text content is “invite to dinner”.

The other feature information corresponding to the media information is“happy”.

S203. The server synthesizes information related to the mediainformation with information related to the text information to obtaincomposite information.

The information related to the media information includes the mediainformation or a media information identifier. The information relatedto the text information includes the text information or a textinformation identifier.

In another embodiment of the present invention, the synthesizinginformation related to the media information with information related tothe text information to obtain composite information may bespecifically: when the information related to the media information isthe media information, and the information related to the textinformation is the text information, synthesizing the media informationwith the text information into composite format information.

In another embodiment of the present invention, the synthesizinginformation related to the media information with information related tothe text information to obtain composite information may bespecifically: creating a data association table according to the textinformation, and establishing an association relationship between thetext information identifier and the text information; and when theinformation related to the media information is the media information,and the information related to the text information is the textinformation identifier, querying the data association table according tothe text information to obtain the text information identifiercorresponding to the text information, and synthesizing the mediainformation with the text information identifier to obtain compositeinformation.

In another embodiment of the present invention, the synthesizinginformation related to the media information with information related tothe text information to obtain composite information may bespecifically: creating a data association table according to the mediainformation, the text content, and the keyword, and separatelyestablishing association relationships between the media informationidentifier and the media information, a text content identifier and thetext content, and a keyword identifier and the keyword; and when theinformation related to the media information is the media informationidentifier, and the information related to the text information is thetext information identifier, querying the data association tableaccording to the media information and the text information to obtainthe media information identifier corresponding to the media information,the text content identifier corresponding to the text content, and thekeyword identifier corresponding to the keyword, and synthesizing themedia information identifier with the text content identifier and thekeyword identifier to obtain composite information.

S204. Send the composite information to a destination client accordingto the destination client information, so that the destination clientobtains the media information and the text information according to thecomposite information and displays the media information and the textinformation.

The server recognizes the destination client according to thedestination client information carried in the media information request,and sends the composite information to the destination client.

In this embodiment of the present invention, the server may furthersend, to the originating client, the text information corresponding tothe media information, so that the originating client displays the textinformation.

The text information may include the text content, or the keyword, orthe text content and the keyword.

In this embodiment of the present invention, the client may be installedon a terminal or a mobile terminal such as a mobile phone, a personalcomputer (PC), or a tablet computer PAD.

In another embodiment of the present invention, when the originatingclient or the destination client displays information, the client maydynamically process a user interface information display option by meansof menu setting or switching according to a user interface displaystatus, or content related to the media information, or a userrequirement, so as to display more related information. The userinterface information display option includes but is not limited to themedia information, the text content corresponding to the mediainformation, the tag corresponding to the text content, the otherfeature information corresponding to the media information, a userexpression corresponding to the text content, a media informationsending time, a media information receiving time, a media informationlength, a media information sender number or address, a mediainformation receiver number or address, the other feature informationcorresponding to the media information, or the like. In the userinterface, not only the information display option is displayed, butalso a switching function control can be displayed. The switchingfunction control may be configured to switch between displaying themedia information and displaying the media information and the textinformation corresponding to the media information, and display, in theuser interface according to a user operation, the media information, orthe media information and the text information corresponding to themedia information.

In the embodiment of the method for displaying media informationaccording to the present invention, a server receives media information,parses the media information to obtain corresponding text information,synthesizes the media information with the text information to obtaincomposite information, and sends the composite information to adestination client. Finally, the destination client displays the mediainformation and the text information in a display user interfacesimultaneously, and communication records can be visually displayed to auser. It is avoided that the user has to click media links of all mediainformation repeatedly to browse the communication records. In themethod for displaying media information according to this embodiment ofthe present invention, the destination client displays the mediainformation and the text information simultaneously, and by browsing thetext information, the user can browse media information content quicklyand visually. In this way, storage space and processes occupied on aterminal may be reduced, consumption of CPU resources is reduced, andefficiency of obtaining the media information content is improved.Better user experience is provided for the user, and practicalapplicability is high.

In this embodiment of the present invention, the media informationincludes audio information, video information, or the like. In thefollowing embodiment, audio information is used as an example fordescription.

FIG. 3 is a schematic flowchart of a method for displaying speechinformation according to another embodiment of the present invention.The embodiment of the method for displaying speech information includesthe following steps.

S301. An originating client sends a speech information request to aserver.

The speech information request includes prerecorded speech informationand destination client information.

The originating client may prerecord a segment of speech information tobe sent to a destination client, and when the speech information needsto be sent to the destination client, send the speech informationrequest to the server, where the speech information request carries thespeech information and the destination client information.

The destination client information may be specifically a number, anaddress, a mobile phone number, a nickname, or the like of the client.

S302. The server parses the speech information request, and synthesizescomposite format information.

The server parses the speech information carried in the received speechinformation request to obtain text information corresponding to thespeech information. That the server parses the speech information isspecifically that the server performs speech recognition according tothe speech information to obtain text content corresponding to thespeech information.

The server may further determine, according to the recognized textcontent corresponding to the speech information, a keyword correspondingto the text content, for example, a tag or other feature informationcorresponding to the speech information. The other feature informationcorresponding to the speech information may be “angry”, “happy”, “sad”,“anxious”, “surprised”, or the like that is used to describe a mood of auser. An expression of a user mood may be recognized according to theother feature information corresponding to the speech information and aword used to describe the user mood. This feature may be displayed onthe client as an optional information display option. Other featureinformation corresponding to media information may be replaced orchanged. This is not specifically limited in this embodiment of thepresent invention.

After the server completes parsing of the speech information, the servermay obtain the text information corresponding to the speech information,for example, the text content corresponding to the speech informationand the keyword corresponding to the text content.

The server may further synthesize the speech information with the textinformation into the composite format information.

In this embodiment of the present invention, the text information mayinclude the text content, or the keyword, or the text content and thekeyword. The keyword may include the tag, or the other featureinformation corresponding to the speech information, or the tag and theother feature information corresponding to the speech information. Thetag is a brief summary of the text content. The other featureinformation corresponding to the speech information may be specificallya user mood analyzed by the server according to a speech, a speakingspeed, an intonation, and a meaning of the speech information, forexample, a feature such as “angry”, “happy”, “sad”, or “anxious”. Thisfeature may be displayed on the client as an optional informationdisplay option. The other feature information corresponding to thespeech information may be replaced or changed. This is not specificallylimited in this embodiment of the present invention.

For example, the text content corresponding to the speech information is“It is a holiday tomorrow. I invite everyone to dinner”.

The tag corresponding to the text content is “invite to dinner”.

The other feature information corresponding to the speech information is“happy”.

S303. The server sends the text information to the originating client.

S304. The server sends the composite format information to thedestination client.

The server recognizes the destination client according to thedestination client information carried in the speech informationrequest, and sends the composite format information to the destinationclient.

S305. The originating client displays the speech information and thetext information.

The originating client receives the text information corresponding tothe speech information and sent by the server, and displays the speechinformation and the text information. The text information may includethe text content, or the keyword, or the text content and the keyword.The keyword may include the tag, or the other feature informationcorresponding to the speech information, or the tag and the otherfeature information corresponding to the speech information.

S306. The destination client displays the speech information and thetext information that are obtained.

The destination client receives the composite format information sent bythe server, parses the composite format information to obtain the speechinformation and the text information, and displays the speechinformation and the text information that are obtained.

The destination client parses the received composite format informationto obtain the speech information and the text information correspondingto the speech information. The text information corresponding to thespeech information may include the text content, or the keyword, or thetext content and the keyword.

In this embodiment of the present invention, the originating client andthe destination client may be installed on terminals or mobile terminalssuch as mobile phones, personal PC computers, or PADs.

In another embodiment of the present invention, when the originatingclient or the destination client displays information, the client maydynamically process a user interface information display option by meansof menu setting or switching according to a user interface displaystatus, or content related to the media information, or a userrequirement, so as to display more related information. The userinterface information display option includes but is not limited to themedia information, the text content corresponding to the mediainformation, the tag corresponding to the text content, the otherfeature information corresponding to the media information, a userexpression corresponding to the text content, a media informationsending time, a media information receiving time, a media informationlength, a media information sender number or address, a mediainformation receiver number or address, the other feature informationcorresponding to the media information, or the like. In the userinterface, not only the information display option is displayed, butalso a switching function control can be displayed. The switchingfunction control may be configured to switch between displaying themedia information and displaying the media information and the textinformation corresponding to the media information, and display, in theuser interface according to a user operation, the media information, orthe media information and the text information corresponding to themedia information.

In another embodiment of the present invention, the server synthesizesthe speech information and the text information corresponding to thespeech information into the composite format information. There may bemultiple manners in which the server synthesizes the composite formatinformation and the client parses the composite format information. Thefollowing uses two manners as examples.

Manner 1: The composite format information synthesized by the serverincludes an audio file header 401 with a reserved field, an audio bitstream 402, and an audio extension field 403.

FIG. 4 shows a schematic structural diagram of composite formatinformation according to an embodiment of the present invention. Theaudio file header with the reserved field is used to identify an offsetof the audio extension field in the composite format information. Theaudio bit stream is the speech information. The audio extension fieldmay include the text information corresponding to the speechinformation, or the like. The text information corresponding to thespeech information may include the text content, or the keyword, or thetext content and the keyword. The keyword may include the tag, or theother feature information corresponding to the speech information, orthe tag and the other feature information corresponding to the speechinformation.

The server assigns a value to the reserved field in the audio fileheader in the composite format information according to the offset ofthe audio extension field in the composite format information. A lengthof the reserved field in the audio file header in the composite formatinformation may be set according to a feature of the audio bit streamand a feature of the text information in the audio extension field.

The client receives the composite format information, scans the audiofile header in the composite format information, reads information ofthe reserved field in the audio file header, and obtains the offset ofthe audio extension field in the composite format information. Theclient reads the information of the audio extension field according tothe obtained offset of the audio extension field in the composite formatinformation. The audio extension field may include the text informationcorresponding to the speech information, or the like.

Manner 2: FIG. 5 shows an exemplary diagram of composite formatinformation according to another embodiment of the present invention.The composite format information synthesized by the server is acompressed file created by packing and compressing a description fileand the speech information together. The description file may include afile name of the speech information, the text information correspondingto the speech information, and the like. The text informationcorresponding to the speech information may include the text content, orthe keyword, or the text content and the keyword. The keyword mayinclude the tag, or the other feature information corresponding to thespeech information, or the tag and the other feature informationcorresponding to the speech information.

The compressed file is specifically a compressed file created by theserver by compressing the description file in a .xml format and thespeech information in a .wav format into a .zip format.

After the client receives the compressed file in the .zip format that issent by the server, the client parses the composite format information.

Specifically, the composite format information is parsed as follows:After decompressing the compressed file, the client reads content of thedescription file “Description.xml”: reading a sound node to obtain thefile name of the speech information, reading a text node to obtain thetext content corresponding to the speech information, reading a tag nodeto obtain the keyword corresponding to the text content, and readinganother node to obtain the other feature information corresponding tothe speech information.

In this embodiment of the present invention, after the destinationclient parses the composite format information, the destination clientdisplays the speech information and the text information correspondingto the speech information simultaneously. The text informationcorresponding to the speech information may include the text content, orthe keyword, or the text content and the keyword. The keyword mayinclude the tag, or the other feature information corresponding to thespeech information, or the tag and the other feature informationcorresponding to the speech information.

FIG. 6A shows a schematic diagram of a user interface for displayingspeech information on a terminal according to an embodiment of thepresent invention. In the display user interface of the terminal, thereceived speech information and the text information corresponding tothe speech information are displayed simultaneously. The displayed textinformation may include at least one of the following: the text contentcorresponding to the speech information, the tag corresponding to thetext content, a speech information sending time, a speech informationreceiving time, a speech information length, speech information senderinformation, speech information receiver information, or a displayeffect of the other feature information corresponding to the speechinformation on the terminal.

In the display user interface shown in FIG. 6A, the informationdisplayed to the user includes: the speech information, the text contentcorresponding to the speech information, the tag corresponding to thetext content, and other features corresponding to the speechinformation. The text content 601 corresponding to the speechinformation is “It is a holiday tomorrow. I invite everyone to dinner”.The tag 602 corresponding to the text content is “invite to dinner”. Theother feature information 603 corresponding to the speech information is“happy”.

Optionally, FIG. 6B shows a schematic diagram of a user interface fordisplaying speech information on a terminal according to anotherembodiment of the present invention. A switching function control 6B1may be set in the display user interface. The media information, or themedia information and the text information corresponding to the mediainformation may be displayed according to a user operation. Thedisplayed text information may include at least one of the following:the text content corresponding to the speech information, the tagcorresponding to the text content, a speech information sending time, aspeech information receiving time, a speech information length, speechinformation sender information, speech information receiver information,or a display effect of the other feature information corresponding tothe speech information on the terminal.

In the display user interface shown in FIG. 6B, the switching functioncontrol 6B1 is set in the display user interface, and the informationdisplayed to the user includes: the speech information, the text contentcorresponding to the speech information, the tag corresponding to thetext content, and other features corresponding to the speechinformation. The text content 601 corresponding to the speechinformation is “It is a holiday tomorrow. I invite everyone to dinner”.The tag 602 corresponding to the text content is “invite to dinner”. Theother feature information 603 corresponding to the speech information is“happy”. According to the user operation, the switching function controlis clicked, and the media information, or the media information and thetext information corresponding to the media information may be displayedin the user interface.

In the embodiment of the method for displaying speech informationaccording to the present invention, a server receives speechinformation, parses the speech information to obtain corresponding textinformation, synthesizes the speech information with the textinformation to obtain composite format information, and sends thecomposite format information to a destination client. Finally, thedestination client displays the speech information and the textinformation in a display user interface simultaneously, andcommunication records can be visually displayed to a user. It is avoidedthat the user has to click speech links of all speech informationrepeatedly to browse the communication records. In the method fordisplaying speech information according to this embodiment of thepresent invention, the destination client displays the speechinformation and the text information simultaneously, and by browsing thetext information, the user can browse speech information content quicklyand visually. In this way, storage space and processes occupied on aterminal may be reduced, consumption of CPU resources is reduced, andefficiency of obtaining the speech information content is improved.Better user experience is provided for the user, and practicalapplicability is high.

FIG. 7 is a schematic flowchart of a method for displaying speechinformation according to another embodiment of the present invention.The embodiment of the method for displaying speech information includesthe following steps.

S701. An originating client sends a speech information request to aserver.

The speech information request includes prerecorded speech informationand destination client information.

The originating client may prerecord a segment of speech information tobe sent to a destination client, and when the speech information needsto be sent to the destination client, send the speech informationrequest to the server, where the speech information request carries thespeech information and the destination client information.

The destination client information may be specifically a number, anaddress, a mobile phone number, a nickname, or the like of the client.

S702. The server parses the speech information request, and creates adata association table.

The server parses the speech information carried in the received speechinformation request to obtain text information corresponding to thespeech information. That the server parses the speech information isspecifically that the server performs speech recognition according tothe speech information to obtain text content corresponding to thespeech information.

The server may further determine, according to the recognized textcontent corresponding to the speech information, a keyword correspondingto the text content, for example, a tag or other feature informationcorresponding to the speech information. The other feature informationcorresponding to the speech information may be “angry”, “happy”, “sad”,“anxious”, or the like that is used to describe a mood of a user. Anexpression of a user mood may be recognized according to the otherfeature information corresponding to the speech information and a wordused to describe the user mood. This feature may be displayed on theclient as an optional information display option. Other featureinformation corresponding to media information may be replaced orchanged. This is not specifically limited in this embodiment of thepresent invention.

After the server completes parsing of the speech information, the servermay obtain the text information corresponding to the speech information,for example, the text content corresponding to the speech informationand the keyword corresponding to the text content.

The server may further create a data association table, and establish anassociation relationship between a text information identifier (ID) andthe text information. As shown in the association table between the textinformation ID and the text information in Table 1, a search may beperformed in the association table between the text information ID andthe text information according to a text information ID 00000001 toobtain corresponding text information, including text content “It is aholiday tomorrow. I invite everyone to dinner” corresponding to thespeech information, a tag “invite to dinner” corresponding to the textcontent, and feature information “happy” corresponding to the speechinformation. A search may be performed in the association table betweenthe text information ID and the text information according to a textinformation ID 00000002 to obtain corresponding text information,including text content “Great! Where to eat?” corresponding to thespeech information, a tag “where to eat?” corresponding to the textcontent, and feature information “surprised” corresponding to the speechinformation. A search may be performed in the association table betweenthe text information ID and the text information according to a textinformation ID 00000003 to obtain corresponding text information,including text content “Up to you, as you like” corresponding to thespeech information, a tag “as you like” corresponding to the textcontent, and feature information “happy” corresponding to the speechinformation. A search may be performed in the association table betweenthe text information ID and the text information according to a textinformation ID 00000004 to obtain corresponding text information,including text content “Free meal for any listener? Scrounge a meal!”corresponding to the speech information, a tag “scrounge meal”corresponding to the text content, and feature information “null”corresponding to the speech information.

TABLE 1 Text information ID Text information 00000001 It is a holidaytomorrow. I invite everyone to dinner/Invite to dinner/Happy 00000002Great! Where to eat?/Where to eat?/Surprised 00000003 Up to you, as youlike/As you like/Happy 00000004 Free meal for any listener? Scrounge ameal!/Scrounge meal/Null . . . . . .

In this embodiment of the present invention, the text information mayinclude the text content, or the keyword, or the text content and thekeyword. The keyword may include the tag, or the other featureinformation corresponding to the speech information, or the tag and theother feature information corresponding to the speech information. Thetag is a brief summary of the text content. The other featureinformation corresponding to the speech information may be specificallya user mood analyzed by the server according to a speech, a speakingspeed, an intonation, and a meaning of the speech information, forexample, a feature such as “angry”, “happy”, “sad”, or “anxious”. Thisfeature may be displayed on the client as an optional informationdisplay option. The other feature information corresponding to thespeech information may be replaced or changed. This is not specificallylimited in this embodiment of the present invention.

For example, the text content corresponding to the speech information is“It is a holiday tomorrow. I invite everyone to dinner”.

The tag corresponding to the text content is “invite to dinner”.

The other feature information corresponding to the speech information is“happy”.

S703. The server sends the text information to the originating client.

S704. The server sends the speech information and the text informationID to a destination client.

The server recognizes the destination client according to thedestination client information carried in the speech informationrequest, and sends the speech information and the text information ID tothe destination client.

S705. The originating client displays the speech information and thetext information.

The originating client receives the text information corresponding tothe speech information and sent by the server, and displays the speechinformation and the text information.

S706. The destination client sends, to the server, a request for findingthe text information corresponding to the text information ID.

The destination client receives the speech information and the textinformation ID that are sent by the server, and sends, to the server,the request for finding the text information corresponding to the textinformation ID.

S707. The server finds the text information corresponding to the textinformation ID.

Table 1 is the data association table between the text information IDand the corresponding text information. As shown in Table 1, that theserver finds the text information corresponding to the text informationID is specifically: the server searches the local data association tableon the server according to the received text information ID to find theassociation relationship between the text information ID and the textinformation corresponding to the speech information, and retrieves thetext information corresponding to the speech information.

S708. The server sends the text information to the destination client.

The server sends, to the destination client, the retrieved textinformation corresponding to the speech information.

S709. The destination client displays the speech information and thetext information that are obtained.

The destination client receives the text information retrieved and sentby the server, and displays the speech information and the textinformation that are obtained. The text information may include the textcontent, or the keyword, or the text content and the keyword.

In this embodiment of the present invention, the originating client andthe destination client may be installed on terminals or mobile terminalssuch as mobile phones, personal PC computers, or PADs.

In another embodiment of the present invention, when the originatingclient or the destination client displays information, the client maydynamically process a user interface information display option by meansof menu setting or switching according to a user interface displaystatus, or content related to the media information, or a userrequirement, so as to display more related information. The userinterface information display option includes but is not limited to themedia information, the text content corresponding to the mediainformation, the tag corresponding to the text content, the otherfeature information corresponding to the media information, a userexpression corresponding to the text content, a media informationsending time, a media information receiving time, a media informationlength, a media information sender number or address, a mediainformation receiver number or address, the other feature informationcorresponding to the media information, or the like. In the userinterface, not only the information display option is displayed, butalso a switching function control can be displayed. The switchingfunction control may be configured to switch between displaying themedia information and displaying the media information and the textinformation corresponding to the media information, and display, in theuser interface according to a user operation, the media information, orthe media information and the text information corresponding to themedia information.

In the embodiment of the method for displaying speech informationaccording to the present invention, a server receives speechinformation, parses the speech information to obtain corresponding textinformation, establishes an association relationship between a textinformation ID and the text information, and sends the speechinformation and the text information ID to a destination client.Finally, the destination client displays the speech information and thetext information in a display user interface simultaneously, andcommunication records can be visually displayed to a user. It is avoidedthat the user has to click speech links of all speech informationrepeatedly to browse the communication records. In the manner ofdisplaying speech information according to this embodiment of thepresent invention, an originating client quickly displays the textinformation, and the destination client quickly displays the speechinformation and asynchronously displays the text information. Thedestination client displays the speech information and the textinformation simultaneously. The user can browse the text informationcorresponding to the speech information. By browsing the textinformation, the user can browse speech information content quickly andvisually. In this way, storage space and processes occupied on aterminal may be reduced, consumption of CPU resources is reduced, andefficiency of obtaining the speech information content is improved.Better user experience is provided for the user, and practicalapplicability is high.

FIG. 8 is a schematic flowchart of a method for displaying speechinformation according to another embodiment of the present invention.The embodiment of the method for displaying speech information includesthe following steps.

S801. An originating client sends a speech information request to aserver.

The speech information request includes prerecorded speech informationand destination client information.

The originating client may prerecord a segment of speech information tobe sent to a destination client, and when the speech information needsto be sent to the destination client, send the speech informationrequest to the server, where the speech information request carries thespeech information and the destination client information.

The destination client information may be specifically a number, anaddress, a mobile phone number, a nickname, or the like of the client.

S802. The server parses the speech information request, and creates adata association table.

The server parses the speech information carried in the received speechinformation request to obtain text information corresponding to thespeech information. That the server parses the speech information isspecifically that the server performs speech recognition according tothe speech information to obtain text content corresponding to thespeech information.

The server may further determine, according to the recognized textcontent corresponding to the speech information, a keyword correspondingto the text content, for example, a tag or other feature informationcorresponding to the speech information. The other feature informationcorresponding to the speech information may be “angry”, “happy”, “sad”,“anxious”, “surprised”, or the like that is used to describe a mood of auser. An expression of a user mood may be recognized according to theother feature information corresponding to the speech information and aword used to describe the user mood. This feature may be displayed onthe client as an optional information display option. Other featureinformation corresponding to media information may be replaced orchanged. This is not specifically limited in this embodiment of thepresent invention.

After the server completes parsing of the speech information, the servermay obtain the text information corresponding to the speech information,for example, the text content corresponding to the speech informationand the keyword corresponding to the text content.

The server may further create a data association table, and separatelyestablish association relationships between a speech information ID andthe speech information, a text content ID and the text content, and akeyword ID and the keyword. A form of the association table is notlimited in the present invention. For example, an association table maybe created in a form shown in the following table. For an associationtable between the speech information ID and the speech information,refer to Table 2. For an association table between the text content IDand the text content, refer to Table 3. For an association table betweenthe keyword ID and the keyword, refer to Table 4. The association tablesbetween the speech information ID and the speech information, the textcontent ID and the text content, and the keyword ID and the keyword maybe maintained in one table, or may be maintained separately.

TABLE 2 Speech information ID Speech information 01 Speech information 102 Speech information 2 03 Speech information 3 04 Speech information 4. . . . . .

TABLE 3 Text content ID Text content 001 It is a holiday tomorrow. Iinvite everyone to dinner. 002 Great! Where to eat? 003 Up to you, asyou like. 004 Free meal for any listener? Scrounge a meal! . . . . . .

TABLE 4 IDKeyword ID Keyword 0001 Happy 0002 Surprised 0003 Happy 004Null . . . . . .

In this embodiment of the present invention, the text information mayinclude the text content, or the keyword, or the text content and thekeyword. The keyword may include the tag, or the other featureinformation corresponding to the speech information, or the tag and theother feature information corresponding to the speech information. Thetag is a brief summary of the text content. The other featureinformation corresponding to the speech information may be specificallya user mood analyzed by the server according to a speech, a speakingspeed, an intonation, and a meaning of the speech information, forexample, a feature such as “angry”, “happy”, “sad”, or “anxious”. Thisfeature may be displayed on the client as an optional informationdisplay option. The other feature information corresponding to thespeech information may be replaced or changed. This is not specificallylimited in this embodiment of the present invention.

For example, the text content corresponding to the speech information is“It is a holiday tomorrow. I invite everyone to dinner”.

The tag corresponding to the text content is “invite to dinner”.

The other feature information corresponding to the speech information is“happy”.

S803. The server sends the speech information ID, the text content ID,and the keyword ID to a destination client.

The server recognizes the destination client according to thedestination client information carried in the speech informationrequest, and sends the speech information ID, the text information ID,and the keyword ID to the destination client.

S804. The server sends the speech information ID, the text content ID,and the keyword ID to the originating client.

Optionally, because the speech information already exists on theoriginating client, to reduce a load capability of the server and avoidlarge consumption of resources on the server, the server may not sendthe speech information ID to the originating client, but sends only thetext content ID and the keyword ID.

Optionally, when processing information, the server performs anoperation in a manner of batch packing processing. The server may sendthe speech information ID, the text content ID, and the keyword ID tothe originating client simultaneously.

S805. The destination client sends, to the server, a request for findingthe speech information ID, the text content ID, and the keyword ID.

The destination client receives the speech information ID, the textcontent ID, and the keyword ID that are sent by the server, and sends,to the server, the request for finding the speech information ID, thetext content ID, and the keyword ID.

S806. The originating client sends, to the server, a request for findingthe speech information ID, the text content ID, and the keyword ID.

Optionally, because sending a search request to the server causes largeconsumption of resources on the server, and the speech informationalready exists on the originating client, the originating client may notsend a request for finding the speech information ID to the server, butsends only a request for the text content ID and the keyword ID.

S807. The server finds speech information corresponding to the speechinformation ID, text content corresponding to the text content ID, and akeyword corresponding to the keyword ID.

Table 2 is the data association table between the speech information IDand the corresponding speech information. Table 3 is the dataassociation table between the text content ID and the corresponding textcontent. Table 4 is the data association table between the keyword IDand the corresponding keyword. As shown in Table 2, Table 3, and Table4, that the server finds speech information corresponding to the speechinformation ID, text content corresponding to the text content ID, and akeyword corresponding to the keyword ID is specifically: the serverseparately searches the local data association table on the serveraccording to the received speech information ID, text content ID, andkeyword ID to find the association relationships between the speechinformation ID and the speech information, the text content ID and thetext content, and the keyword ID and the keyword, and retrieves thespeech information, the text content corresponding to the speechinformation, and the keyword corresponding to the text content.

S808. The server sends the speech information, the text content, and thekeyword to the destination client separately.

The server sends, to the destination client, the speech information, thetext content corresponding to the speech information, and the keywordcorresponding to the text content that are retrieved.

S809. The server sends the speech information, the text content, and thekeyword to the originating client separately.

The server sends, to the originating client, the speech information, thetext content corresponding to the speech information, and the keywordcorresponding to the text content that are retrieved.

S810. The destination client displays the speech information, the textcontent, and the keyword that are obtained.

The destination client receives the text information retrieved and sentby the server, and displays the speech information, the text content,and the keyword that are obtained. When displaying the text content andthe keyword, the destination client may display at least one thereof.

S811. The originating client displays the speech information, the textcontent, and the keyword that are obtained.

The originating client receives the text information retrieved and sentby the server, and displays the speech information, the text content,and the keyword that are obtained. When displaying the text content andthe keyword, the originating client may display at least one thereof.

In another embodiment of the present invention, there is no sequencebetween step S803 and step S804 performed by the server. Step S803 maybe performed first, or step S804 may be performed first, or step S803and step S804 may be performed simultaneously.

In another embodiment of the present invention, there is no sequencebetween step S805 performed by the destination client and step S806performed by the originating client. The destination client may performstep S805 first, or the originating client may perform step S806 first,or the two steps are performed simultaneously.

In another embodiment of the present invention, there is no sequencebetween step S808 and step S809 performed by the server. The server mayperform step S808 first, or may perform step S809, or may perform thesteps simultaneously.

In this embodiment of the present invention, the originating client andthe destination client may be installed on terminals or mobile terminalssuch as mobile phones, personal PC computers, or PADs.

In another embodiment of the present invention, when the originatingclient or the destination client displays information, the client maydynamically process a user interface information display option by meansof menu setting or switching according to a user interface displaystatus, or content related to the media information, or a userrequirement, so as to display more related information. The userinterface information display option includes but is not limited to themedia information, the text content corresponding to the mediainformation, the tag corresponding to the text content, the otherfeature information corresponding to the media information, a userexpression corresponding to the text content, a media informationsending time, a media information receiving time, a media informationlength, a media information sender number or address, a mediainformation receiver number or address, the other feature informationcorresponding to the media information, or the like. In the userinterface, not only the information display option is displayed, butalso a switching function control can be displayed. The switchingfunction control may be configured to switch between displaying themedia information and displaying the media information and the textinformation corresponding to the media information, and display, in theuser interface according to a user operation, the media information, orthe media information and the text information corresponding to themedia information.

In the embodiment of the method for displaying speech informationaccording to the present invention, a server receives speechinformation, parses the speech information to obtain corresponding textinformation, establishes association relationships between a speechinformation ID and the speech information, a text content ID and textcontent, and a keyword ID and a keyword, and sends the speechinformation ID, the text content ID, and the keyword ID to a destinationclient. Finally, the destination client displays the speech informationand the text information in a display user interface simultaneously, andcommunication records can be visually displayed to a user. It is avoidedthat the user has to click speech links of all speech informationrepeatedly to browse the communication records. In the manner ofdisplaying speech information according to this embodiment of thepresent invention, functional modules of a terminal bearing a client aresimplified, and association relationships are established between thespeech information ID and the speech information, the text content IDand the text content, and the keyword ID and the keyword. The clientsends a query request to the server according to each ID, andasynchronously displays the speech information and the text information.This facilitates distributed deployment and load balancing of theserver. An originating client quickly displays the text information, andthe destination client quickly displays the speech information andasynchronously displays the text information. The destination clientdisplays the speech information and the text information simultaneously.The user can browse the text information corresponding to the speechinformation. By browsing the text information, the user can browsespeech information content quickly and visually. In this way, storagespace and processes occupied on the terminal may be reduced, consumptionof CPU resources is reduced, and efficiency of obtaining the speechinformation content is improved. Better user experience is provided forthe user, and practical applicability is high.

FIG. 9 is a schematic flowchart of a method for displaying mediainformation according to another embodiment of the present invention. Asshown in FIG. 9, the embodiment of the method for displaying mediainformation includes the following steps.

S901. Receive a media information request, where the media informationrequest carries media information.

The media information may be audio information, video information, orthe like.

The receiving a media information request, where the media informationrequest carries media information, may be specifically performed by aserver, or may be performed by a client.

S902. Parse the received media information to obtain text informationcorresponding to the media information.

The parsing the received media information to obtain text informationcorresponding to the media information is specifically: performing mediarecognition according to the media information to obtain text contentcorresponding to the media information.

A keyword corresponding to the text content, for example, a tag or otherfeature information corresponding to the media information, may befurther determined according to the recognized text contentcorresponding to the media information. The other feature informationcorresponding to the media information may be “angry”, “happy”, “sad”,“anxious”, “surprised”, or the like that is used to describe a mood of auser. An expression of a user mood may be recognized according to otherfeature information corresponding to speech information and a word usedto describe the user mood. This feature may be displayed on the clientas an optional information display option. The other feature informationcorresponding to the media information may be replaced or changed. Thisis not specifically limited in this embodiment of the present invention.

After the parsing the media information is complete, the textinformation corresponding to the media information, for example, thetext content corresponding to the media information and the keywordcorresponding to the text content, may be obtained.

In this embodiment of the present invention, the text information mayinclude the text content, or the keyword, or the text content and thekeyword. The keyword may include the tag, or the other featureinformation corresponding to the media information, or the tag and theother feature information corresponding to the media information. Thetag is a brief summary of the text content. The other featureinformation corresponding to the media information may be specifically auser mood analyzed by the server according to media, a speaking speed,an intonation, and a meaning of the media information, for example, afeature such as “angry”, “happy”, “sad”, “anxious”, or “surprised”. Thisfeature may be displayed on the client as an optional informationdisplay option. The other feature information corresponding to the mediainformation may be replaced or changed. This is not specifically limitedin this embodiment of the present invention.

For example, the text content corresponding to the media information is“It is a holiday tomorrow. I invite everyone to dinner”.

The tag corresponding to the text content is “invite to dinner”.

The other feature information corresponding to the media information is“happy”.

The parsing the received media information to obtain text informationcorresponding to the media information may be specifically performed bythe server, or may be performed by the client.

S903. Display the media information and the text information.

When displaying information, the client may dynamically process a userinterface information display option by means of menu setting orswitching according to a user interface display status, or contentrelated to the media information, or a user requirement, so as todisplay more related information. The user interface information displayoption includes but is not limited to the media information, the textcontent corresponding to the media information, the tag corresponding tothe text content, the other feature information corresponding to themedia information, a user expression corresponding to the text content,a media information sending time, a media information receiving time, amedia information length, a media information sender number or address,a media information receiver number or address, the other featureinformation corresponding to the media information, or the like.

Optionally, in the user interface, not only the information displayoption is displayed, but also the media information, or the mediainformation and the text information may be displayed according to aswitching instruction. A switching function control can be displayed inthe user interface. The switching function control may be configured toswitch between displaying the media information and displaying the mediainformation and the text information corresponding to the mediainformation, and display, in the user interface according to a useroperation, the media information, or the media information and the textinformation corresponding to the media information.

In the embodiment of the method for displaying media informationaccording to the present invention, a server receives media information,parses the media information to obtain corresponding text information,synthesizes the media information with the text information to obtaincomposite information, and sends the composite information to adestination client. Finally, the destination client displays the mediainformation and the text information in a display user interfacesimultaneously, and communication records can be visually displayed to auser. It is avoided that the user has to click media links of all mediainformation repeatedly to browse the communication records. In themethod for displaying media information according to this embodiment ofthe present invention, the destination client displays the mediainformation and the text information simultaneously, and by browsing thetext information, the user can browse media information content quicklyand visually. In this way, storage space and processes occupied on aterminal may be reduced, consumption of CPU resources is reduced, andefficiency of obtaining the media information content is improved.Better user experience is provided for the user, and practicalapplicability is high.

FIG. 10 is a schematic diagram of an apparatus 100 for displaying mediainformation according to an embodiment of the present invention. Asshown in FIG. 10, the apparatus 100 includes an interaction unit 1001, arecognition unit 1002, and a synthesis unit 1003.

The interaction unit 1001 receives a media information request sent byan originating client, where the media information request carries mediainformation and destination client information, and is furtherconfigured to send composite information to a destination clientaccording to the destination client information carried in the mediainformation request.

The recognition unit 1002 parses the media information carried in thereceived media information request to obtain text informationcorresponding to the media information.

The synthesis unit 1003 synthesizes information related to the mediainformation with information related to the text information to obtainthe composite information.

In this embodiment of the present invention, the recognition unit 1002parses the media information carried in the received media informationrequest to obtain the text information corresponding to the mediainformation. That the recognition unit 1002 parses the media informationis specifically that the recognition unit 1002 performs mediarecognition according to the media information to obtain text contentcorresponding to the media information. The recognition unit 1002 mayfurther determine, according to the recognized text contentcorresponding to the media information, a keyword corresponding to thetext content.

In another embodiment of the present invention, the synthesis unit 1003may further synthesize the media information with the text informationinto composite format information. That the interaction unit 1001 sendscomposite information to a destination client according to thedestination client information carried in the media information requestis specifically that the interaction unit 1001 sends the compositeformat information synthesized by the synthesis unit 1003 to thedestination client according to the destination client informationcarried in the media information request.

By using the apparatus for displaying media information, the destinationclient and the originating client display the media information and thetext information, and implement a media information display process. Forbrevity, details are not described again.

In the embodiment of the apparatus for displaying media informationaccording to the present invention, a server receives media information,parses the media information to obtain corresponding text information,synthesizes the media information with the text information to obtaincomposite information, and sends the composite information to adestination client. Finally, the destination client displays the mediainformation and the text information in a display user interfacesimultaneously, and communication records can be visually displayed to auser. It is avoided that the user has to click media links of all mediainformation repeatedly to browse the communication records. In themethod for displaying media information according to this embodiment ofthe present invention, the destination client displays the mediainformation and the text information simultaneously, and by browsing thetext information, the user can browse media information content quicklyand visually. In this way, storage space and processes occupied on aterminal may be reduced, consumption of CPU resources is reduced, andefficiency of obtaining the media information content is improved.Better user experience is provided for the user, and practicalapplicability is high.

FIG. 11 is a schematic diagram of an apparatus 100 for displaying mediainformation according to another embodiment of the present invention. Asshown in FIG. 11, the apparatus 100 may further include a processingunit 1104 and a storage unit 1105.

The processing unit 1104 may create a data association table, andestablish an association relationship between a text informationidentifier and the text information.

The interaction unit 1001 may further receive a request sent by theclient for querying the text information identifier.

The storage unit 1105 may store the data association table of theassociation relationship between the text information identifier and thetext information.

The interaction unit 1001 may further send the text information to theoriginating client and the destination client.

In this embodiment of the present invention, the recognition unit 1002parses the media information carried in the received media informationrequest to obtain the text information corresponding to the mediainformation; the processing unit 1104 creates the data association tableaccording to the text information corresponding to the media informationand obtained by the recognition unit 1002 by parsing, and establishesthe association relationship between the text information identifier andthe text information; the interaction unit 1001 sends, to thedestination client, the composite information that is obtained by thesynthesis unit 1003 by synthesizing the media information with the textinformation identifier; the interaction unit 1001 receives the requestsent by the client for querying the text information identifier, andsearches the data association table stored in the storage unit 1105 tofind the text information corresponding to the text informationidentifier; and the interaction unit 1001 sends, to the destinationclient, the text information found in the storage unit 1105.

In another embodiment of the present invention, the processing unit 1104may create a data association table, and establish associationrelationships between a media information identifier and the mediainformation, a text content identifier and the text content, and akeyword identifier and the keyword.

The interaction unit 1001 may further receive a request sent by theclient for querying the media information identifier, the text contentidentifier, and the keyword identifier.

The storage unit 1105 may further store the data association table ofthe association relationships between the media information identifierand the media information, the text content identifier and the textcontent, and the keyword identifier and the keyword.

The interaction unit 1001 may further send the media information, thetext content, and the keyword to the originating client and thedestination client.

In the another embodiment of the present invention, the recognition unit1002 parses the media information carried in the received mediainformation request to obtain the text information corresponding to themedia information; the processing unit 1104 creates the data associationtable according to the text information corresponding to the mediainformation and obtained by the recognition unit 1002 by parsing, andestablishes the association relationships between the media informationidentifier and the media information, the text content identifier andthe text content, and the keyword identifier and the keyword; theinteraction unit 1001 sends, to the destination client, the compositeinformation that is obtained by the synthesis unit 1003 by synthesizingthe media information identifier with the text content identifier andthe keyword identifier; the interaction unit 1001 receives the requestsent by the client for querying the media information identifier, thetext content identifier, and the keyword identifier, and searches thedata association table stored in the storage unit 1105 to find the mediainformation corresponding to the media information identifier, the textcontent corresponding to the text content identifier, and the keywordcorresponding to the keyword identifier; and the interaction unit 1001sends, to the destination client, the media information, the textcontent, and the keyword that are found in the storage unit 1105.

By using the apparatus for displaying media information, the destinationclient and the originating client display the media information and thetext information, and implement a media information display process. Forbrevity, details are not described again.

In the embodiment of the apparatus for displaying media informationaccording to the present invention, a server receives media information,parses the media information to obtain corresponding text information,synthesizes the media information with the text information to obtaincomposite information, and sends the composite information to adestination client. Finally, the destination client displays the mediainformation and the text information in a display user interfacesimultaneously, and communication records can be visually displayed to auser. It is avoided that the user has to click media links of all mediainformation repeatedly to browse the communication records. In themethod for displaying media information according to this embodiment ofthe present invention, the destination client displays the mediainformation and the text information simultaneously, and by browsing thetext information, the user can browse media information content quicklyand visually. In this way, storage space and processes occupied on aterminal may be reduced, consumption of CPU resources is reduced, andefficiency of obtaining the media information content is improved.Better user experience is provided for the user, and practicalapplicability is high.

FIG. 12 is a schematic diagram of a client 120 for displaying mediainformation according to another embodiment of the present invention. Asshown in FIG. 12, the client 120 includes an interaction unit 1201, aparsing unit 1202, and a display unit 1203.

The interaction unit 1201 receives composite information sent by aserver, where the composite information is obtained by the server afterthe server parses received media information to obtain text informationand synthesizes the media information with the text information.

The paring unit 1202 parses the composite information to obtain themedia information and the text information.

The display unit 1203 displays the media information and the textinformation.

In another embodiment of the present invention, the interaction unit1201 may further send a query request to the server, requesting theserver to query a data association table to obtain the text informationcorresponding to the text information identifier, or the mediainformation corresponding to the media information identifier, the textcontent corresponding to a text content identifier, and the keywordcorresponding to a keyword identifier. The interaction unit 1201 mayfurther receive the text information, or the media information, textcontent, and keyword sent by the server.

When the composite information is composite format information, theparsing unit 1202 parses the composite format information to obtain themedia information and the text information; and the display unit 1203displays the media information and the text information according to themedia information and the text information that are obtained by theparsing unit 1202 by parsing.

When the composite information is a combination of the media informationand the text information identifier, the parsing unit 1202 parses theobtained text information identifier, and instructs the interaction unit1201 to send a query request to the server, requesting the server toquery the data association table to obtain the text informationcorresponding to the text information identifier; and the display unit1203 displays the media information and the text information that arereceived by the interaction unit 1201.

When the composite information is a combination of the media informationidentifier, the text content identifier, and the keyword identifier, theparsing unit 1202 parses the obtained media information identifier, textcontent identifier, and keyword identifier, and instructs theinteraction unit 1201 to send a query request to the server, requestingthe server to query the data association table to obtain the mediainformation corresponding to the media information identifier, the textcontent corresponding to the text content identifier, and the keywordcorresponding to the keyword identifier; and the display unit 1203displays the media information, the text content, and the keyword thatare received by the interaction unit 1201.

Optionally, the interaction unit 1201 may further receive a switchinginstruction, and display, according to the switching instruction, themedia information, or the media information and the text information.

By using the client for displaying media information, the destinationclient and an originating client display the media information and thetext information, and implement a media information display process. Forbrevity, details are not described again.

In the embodiment of the apparatus for displaying media informationaccording to the present invention, a server receives media information,parses the media information to obtain corresponding text information,synthesizes the media information with the text information to obtaincomposite information, and sends the composite information to adestination client. Finally, the destination client displays the mediainformation and the text information in a display user interfacesimultaneously, and communication records can be visually displayed to auser. It is avoided that the user has to click media links of all mediainformation repeatedly to browse the communication records. In themethod for displaying media information according to this embodiment ofthe present invention, the destination client displays the mediainformation and the text information simultaneously, and by browsing thetext information, the user can browse media information content quicklyand visually. In this way, storage space and processes occupied on aterminal may be reduced, consumption of CPU resources is reduced, andefficiency of obtaining the media information content is improved.Better user experience is provided for the user, and practicalapplicability is high.

FIG. 13 is a schematic diagram of a method for displaying graphicalcontrols according to an embodiment of the present invention. The methodfor displaying graphical controls is applied to a computer system. Thecomputer system includes a display screen and an application program.The embodiment of the method for displaying graphical controls includesthe following steps.

S1301. Invoke the application program, and display a user interface ofthe application program on the display screen.

S1302. Invoke multiple control functions in the application program, anddisplay graphical controls corresponding to the multiple controlfunctions in the user interface of the application program, where thegraphical controls include at least a contact graphical control, a mediainformation graphical control, and a text graphical control, where thecontact graphical control is configured to display contact information,the media information graphical control is configured to playcorresponding media information, and the text graphical control isconfigured to display text information corresponding to the mediainformation.

In another embodiment of the present invention, the text graphicalcontrol further includes a text content graphical control and/or akeyword graphical control, where the text content graphical control isconfigured to display text content corresponding to the mediainformation, and the keyword graphical control is configured to displaya keyword corresponding to the text content corresponding to the mediainformation.

In this embodiment of the present invention, the keyword may include atag, or other feature information corresponding to the mediainformation, or a tag and other feature information corresponding to themedia information. The tag is a brief summary of the text content. Theother feature information corresponding to the media information may bespecifically a user mood analyzed by a server according to a speech, aspeaking speed, an intonation, and a meaning of the media information,for example, a feature such as “angry”, “happy”, “sad”, or “anxious”.This feature may be displayed on a client as an optional informationdisplay option. The other feature information corresponding to the mediainformation may be replaced or changed. This is not specifically limitedin this embodiment of the present invention.

For example, the text content corresponding to the media information is“It is a holiday tomorrow. I invite everyone to dinner”.

The tag corresponding to the text content is “invite to dinner”.

The other feature information corresponding to the media information is“happy”.

In another embodiment of the present invention, when the multiplecontrol functions in the application program are invoked, and thegraphical controls corresponding to the multiple control functions aredisplayed in the user interface of the application program, a switchingfunction graphical control may be displayed in the user interface of theapplication program, where the switching function graphical control isconfigured to receive the switching instruction. According to theswitching instruction, switching is performed between displaying themedia information graphical control in the user interface of theapplication program and displaying the media information graphicalcontrol and the text graphical control in the user interface of theapplication program.

In the embodiment of the method for displaying graphical controlsaccording to the present invention, in a computer system, an applicationprogram is invoked; contact information, text content, and/or a keywordare/is displayed on a display screen; and communication records can bevisually displayed to a user. It is avoided that the user has to clickmedia links of all media information repeatedly to browse thecommunication records. In the method for displaying graphical controlsaccording to this embodiment of the present invention, a destinationclient displays the media information and the text informationsimultaneously, and by browsing the text information, the user canbrowse media information content quickly and visually. In this way,storage space and processes occupied on a terminal may be reduced,consumption of CPU resources is reduced, and efficiency of obtaining themedia information content is improved. Better user experience isprovided for the user, and practical applicability is high.

FIG. 14A is a schematic diagram of an apparatus 140 for displayinggraphical controls according to an embodiment of the present invention.The apparatus includes a display screen. The apparatus further includesa control unit 1401, a control function unit 1402, and a display unit1403.

The control unit 1401 invokes an application program, and instructs thedisplay unit to display a user interface of the application program onthe display screen.

The control function unit 1402 invokes multiple control functions in theapplication program, and instructs the display unit to display graphicalcontrols corresponding to the multiple control functions in the userinterface of the application program, where the graphical controlsinclude at least a contact graphical control, a media informationgraphical control, a text graphical control, and a switching functiongraphical control.

The contact graphical control is configured to display contactinformation. The media information graphical control is configured toplay corresponding media information. The text graphical control isconfigured to display text information corresponding to the mediainformation. The switching function graphical control is configured toswitch between displaying the media information graphical control anddisplaying the media information graphical control and the textgraphical control in the user interface of the application program.

The contact information is information about a contact that sends themedia information.

The display unit 1403 displays the user interface of the applicationprogram on the display screen, and displays the graphical controlscorresponding to the multiple control functions in the user interface ofthe application program, where the graphical controls include at leastthe contact graphical control, the media information graphical control,the text graphical control, and the switching function graphicalcontrol.

FIG. 14B is a schematic diagram of an apparatus 140 for displayinggraphical controls according to another embodiment of the presentinvention. As shown in FIG. 14B, the apparatus 140 further includes acontrol switching unit 1404.

The control switching unit 1404 is configured to instruct the displayunit 1403 to switch between displaying the media information graphicalcontrol in the user interface of the application program and displayingthe media information graphical control and the text graphical controlin the user interface of the application program.

The display unit 1403 is further configured to display, according to theinstruction of the control switching unit 1404, the media informationgraphical control in the user interface of the application program, orthe media information graphical control and the text graphical controlin the user interface of the application program.

The display unit 1403 is further configured to display a switchingfunction graphical control corresponding to the control switching unitin the user interface of the application program, where the switchingfunction graphical control is configured to receive a switchinginstruction, and instruct, according to the switching instruction, thedisplay unit to display the media information graphical control in theuser interface of the application program or display the mediainformation graphical control and the text graphical control in the userinterface of the application program.

FIG. 15 is a schematic diagram of a user interface for displaying mediainformation according to an embodiment of the present invention. Asshown in FIG. 15, a user interface 150 of an application program isdisplayed on a display screen. A contact graphical control 14021, amedia information graphical control 14022, a text graphical control14023, and a switching function graphical control 14024 are displayed inthe user interface 150 of the application program. The contact graphicalcontrol 14021 is configured to display contact information. The mediainformation graphical control 14022 is configured to play correspondingmedia information. The text graphical control 14023 is configured todisplay text information corresponding to the media information. Theswitching function graphical control 14024 is configured to switchbetween displaying the media information graphical control anddisplaying the media information graphical control and the textgraphical control in the user interface of the application program. Inthe user interface of the application program in this embodiment of thepresent invention, multiple contact graphical controls, mediainformation graphical controls, text graphical controls, and switchingfunction graphical controls may be displayed. The user interface of theapplication program in this embodiment of the present invention may beapplied to media information communications software such as WeChat andMiTalk. For example, for a display effect of the user interface appliedto WeChat, refer to the display user interfaces in FIG. 6A and FIG. 6B.

In the embodiment of the apparatus for displaying graphical controlsaccording to the present invention, in a computer system, an applicationprogram is invoked; contact information, text content, and/or a keywordare/is displayed on a display screen; and communication records can bevisually displayed to a user. It is avoided that the user has to clickmedia links of all media information repeatedly to browse thecommunication records. In the method for displaying graphical controlsaccording to this embodiment of the present invention, a destinationclient displays the media information and the text informationsimultaneously, and by browsing the text information, the user canbrowse media information content quickly and visually. In this way,storage space and processes occupied on a terminal may be reduced,consumption of CPU resources is reduced, and efficiency of obtaining themedia information content is improved. Better user experience isprovided for the user, and practical applicability is high.

FIG. 16 is a schematic diagram of an apparatus 160 for displaying mediainformation according to another embodiment of the present invention. Asshown in FIG. 16, the apparatus 160 includes an interaction unit 1601, arecognition unit 1602, and a display unit 1603.

The interaction unit 1601 is configured to receive a media informationrequest, where the media information request carries media information.

The recognition unit 1602 is configured to parse the received mediainformation to obtain text information corresponding to the mediainformation.

The display unit 1603 is configured to display the media information andthe text information.

In this embodiment of the present invention, the recognition unit 1602parses the received media information to obtain the text informationcorresponding to the media information. That the recognition unit 1602parses the media information is specifically that the recognition unit1602 performs media recognition according to the media information toobtain text content corresponding to the media information. Therecognition unit 1602 may further determine, according to the recognizedtext content corresponding to the media information, a keywordcorresponding to the text content.

The recognition unit 1602 parses, according to the media informationreceived by the interaction unit 1601, the received media information toobtain the text information corresponding to the media information, andfinally, the display unit 1603 displays the media information and thetext information.

The interaction unit 1601 is further configured to receive a switchinginstruction, and instruct, according to the switching instruction, thedisplay unit 1603 to display the media information, or the mediainformation and the text information.

By using the apparatus for displaying media information, the destinationclient and an originating client display the media information and thetext information, and implement a media information display process. Forbrevity, details are not described again.

In the embodiment of the apparatus for displaying media informationaccording to the present invention, a server receives media information,parses the media information to obtain corresponding text information,synthesizes the media information with the text information to obtaincomposite information, and sends the composite information to adestination client. Finally, the destination client displays the mediainformation and the text information in a display user interfacesimultaneously, and communication records can be visually displayed to auser. It is avoided that the user has to click media links of all mediainformation repeatedly to browse the communication records. In themethod for displaying media information according to this embodiment ofthe present invention, the destination client displays the mediainformation and the text information simultaneously, and by browsing thetext information, the user can browse media information content quicklyand visually. In this way, storage space and processes occupied on aterminal may be reduced, consumption of CPU resources is reduced, andefficiency of obtaining the media information content is improved.Better user experience is provided for the user, and practicalapplicability is high.

FIG. 17 is a schematic block diagram of an apparatus 170 for displayingmedia information according to another embodiment of the presentinvention. As shown in FIG. 17, the apparatus 170 includes a processor1701, a user interface 1702, a memory 1703, an application program 1704,and a bus 1705.

The processor 1701 is configured to execute a program of the embodimentof the present invention that is stored by the memory 1703, and performbidirectional communication with other apparatuses by using the bus.

The memory 1703 may include one or more of a floppy disk, a UniversalSerial Bus (USB) flash drive, a removable hard disk, a read-only memory(ROM), a random access memory (RAM), a magnetic disk, or an optical discof a computer, and is configured to store a program that can execute theembodiment of the present invention or an application database of theembodiment of the present invention, and receive an input of anothercomponent through the bus 1705 or invoke stored information by anothercomponent, for example, an instruction for querying a text informationidentifier, or querying a media information identifier, a text contentidentifier, and a keyword identifier.

The application program 1704 includes various system programs, and isconfigured to implement various application services.

The user interface 1702 is opened to a user, and is configured toconnect to a terminal and perform data exchange.

The processor 1701 and the memory 1703 may also be integrated into aphysical module that applies the embodiment of the present invention.The program that implements the embodiment of the present invention isstored and runs on the physical module.

Components of the server 170 are coupled together by using the bus 1705.In addition to a data bus, the bus 1705 may include a power bus, acontrol bus, a status signal bus, and the like. However, for cleardescription, various buses are marked as the bus 1705 in the figure.

In this embodiment of the present invention, units of the apparatus 170respectively execute the following content.

The processor 1701 parses media information carried in the receivedmedia information request to obtain text information corresponding tothe media information. Specifically, the processor 1701 performs mediarecognition according to the media information to obtain text contentcorresponding to the media information, and the processor 1701determines, according to the recognized text content corresponding tothe media information, a keyword corresponding to the text content.

The memory 1703 stores the media information request received by theuser interface 1702.

The user interface 1702 is further configured to receive a mediainformation request sent by an originating client, where the mediainformation request carries media information and destination clientinformation, and send composite information to a destination clientaccording to the destination client information carried in the mediainformation request.

Optionally, the user interface 1702 is further configured to receive arequest sent by the client for querying a text information identifier.

Optionally, the user interface 1702 is further configured to send thetext information to the originating client and the destination client.

Optionally, the user interface 1702 is further configured to receive arequest sent by the client for querying a media information identifier,a text content identifier, and a keyword identifier.

Optionally, the user interface 1702 is further configured to send themedia information, the text content, and the keyword to the originatingclient and the destination client.

Optionally, the user interface 1702 sends the request for querying thetext information identifier, a media information identifier request, atext content identifier request, and a keyword identifier request, orthe composite information sent by the processor 1701.

The memory 1703 stores the text information corresponding to the mediainformation and obtained by the processor 1701 by parsing the mediainformation.

Optionally, the memory 1703 may further store the composite informationobtained by the processor 1701 by synthesizing the media information orthe media information identifier with the text information or the textinformation identifier.

Optionally, the memory 1703 may further store a data association tableof an association relationship between the text information identifierand the text information.

Optionally, the memory 1703 may further store a data association tableof association relationship between the media information identifier andthe media information, association relationship between the text contentidentifier and the corresponding text content, and associationrelationship between the keyword identifier and the correspondingkeyword.

Optionally, the memory 1703 may further store the text information foundby the processor 1701.

Optionally, the memory 1703 may further store the media information, thetext content, and the keyword that are found by the processor 1701.

The processor 1701 synthesizes the media information or the mediainformation identifier with the text information or the text informationidentifier to obtain the composite information.

Optionally, the processor 1701 synthesizes the media information withthe text information into composite format information.

Optionally, the processor 1701 may further create the data associationtable, and establish the association relationship between the textinformation identifier and the text information.

Optionally, the processor 1701 may further search the data associationtable stored in the memory 1703 to find the text informationcorresponding to the text information identifier.

Optionally, the processor 1701 may further create the data associationtable, and establish the association relationships between the mediainformation identifier and the media information, the text contentidentifier and the text content, and the keyword identifier and thekeyword.

Optionally, the processor 1701 may further search the data associationtable stored in the memory 1703 to find the media informationcorresponding to the media information identifier, the text contentcorresponding to the text content identifier, and the keywordcorresponding to the keyword identifier.

By using the apparatus for displaying media information, the destinationclient and the originating client display the media information and thetext information, and implement a media information display process. Forbrevity, details are not described again.

In the embodiment of the apparatus for displaying media informationaccording to the present invention, a server receives media information,parses the media information to obtain corresponding text information,synthesizes the media information with the text information to obtaincomposite information, and sends the composite information to adestination client. Finally, the destination client displays the mediainformation and the text information in a display user interfacesimultaneously, and communication records can be visually displayed to auser. It is avoided that the user has to click media links of all mediainformation repeatedly to browse the communication records. In themethod for displaying media information according to this embodiment ofthe present invention, the destination client displays the mediainformation and the text information simultaneously, and by browsing thetext information, the user can browse media information content quicklyand visually. In this way, storage space and processes occupied on aterminal may be reduced, consumption of CPU resources is reduced, andefficiency of obtaining the media information content is improved.Better user experience is provided for the user, and practicalapplicability is high.

FIG. 18 is a schematic block diagram of an apparatus 180 for displayingmedia information according to another embodiment of the presentinvention. As shown in FIG. 18, the apparatus 180 includes a processor1801, a server user interface 1802, a memory 1803, a display 1804, aninput apparatus 1806, and a bus 1805.

The processor 1801 is configured to execute a program of the embodimentof the present invention that is stored by the memory 1803, and performbidirectional communication with other apparatuses by using the bus.

The server user interface 1802 is configured to connect to a server, andperform data exchange.

The memory 1803 may include one or more of a floppy disk, a USB flashdrive, a removable hard disk, a read-only memory (ROM), a random accessmemory (RAM), a magnetic disk, or an optical disc of a computer, and isconfigured to store a program that can execute the embodiment of thepresent invention or an application database of the embodiment of thepresent invention, and receive an input of another component through thebus 1805 or invoke stored information by another component, for example,an instruction for querying a text information identifier, or querying amedia information identifier, a text content identifier, and a keywordidentifier.

The display 1804 may be an appropriate apparatus such as a cathode raytube (CRT) display, a liquid crystal display (LCD), or a touchscreen,and receives an instruction through the bus 1805 so that a graphicaluser interface is displayed on a screen of the display.

The input apparatus 1806 may include any appropriate apparatus such as akeyboard, a mouse, a track recognizer, or a speech recognition userinterface, and is configured to receive an input of a user, and generatea control input that is sent to the processor or another componentthrough the bus 1805. Particularly, when the display of the apparatus180 has a touchscreen, the display is also an input apparatus.

The processor 1801 and the memory 1803 may also be integrated into aphysical module that applies the embodiment of the present invention.The program that implements the embodiment of the present invention isstored and runs on the physical module.

Components of the apparatus 180 are coupled together by using the bus1805. In addition to a data bus, the bus 1805 may include a power bus, acontrol bus, a status signal bus, and the like. However, for cleardescription, various buses are marked as the bus 1805 in the figure.

In this embodiment of the present invention, units of the apparatus 180respectively execute the following content.

The display 1804 receives an instruction of the processor 1801, so thata graphical user interface is displayed on the screen of the display.

When composite information is composite format information, theprocessor 1801 is configured to parse the composite format informationto obtain the media information and the text information, and thedisplay 1802 displays the media information and the text information.

Optionally, when the composite information is a combination of the mediainformation and a text information identifier, the processor 1801 isfurther configured to parse the obtained text information identifier,and instruct the server user interface 1802 to send a query request tothe server, requesting the server to query a data association table toobtain the text information corresponding to the text informationidentifier. The display 1802 displays the media information and the textinformation that are received from the server user interface.

Optionally, when the composite information is a combination of a mediainformation identifier, a text content identifier, and a keywordidentifier, the processor 1801 is further configured to parse theobtained media information identifier, text content identifier, andkeyword identifier, and instruct the server user interface 1802 to senda query request to the server, requesting the server to query a dataassociation table to obtain the media information corresponding to themedia information identifier, the text content corresponding to the textcontent identifier, and the keyword corresponding to the keywordidentifier. The display 1804 displays the media information, the textcontent, and the keyword that are received from the server userinterface.

By using the client for displaying media information, the destinationclient and an originating client display the media information and thetext information, and implement a media information display process. Forbrevity, details are not described again.

In the embodiment of the client for displaying media informationaccording to the present invention, a server receives media information,parses the media information to obtain corresponding text information,synthesizes the media information with the text information to obtaincomposite information, and sends the composite information to adestination client. Finally, the destination client displays the mediainformation and the text information in a display user interfacesimultaneously, and communication records can be visually displayed to auser. It is avoided that the user has to click media links of all mediainformation repeatedly to browse the communication records. In themethod for displaying media information according to this embodiment ofthe present invention, the destination client displays the mediainformation and the text information simultaneously, and by browsing thetext information, the user can browse media information content quicklyand visually. In this way, storage space and processes occupied on aterminal may be reduced, consumption of CPU resources is reduced, andefficiency of obtaining the media information content is improved.Better user experience is provided for the user, and practicalapplicability is high.

The embodiments of the method, apparatus, and client for displayingmedia information, and the method and apparatus for displaying graphicalcontrols according to the present invention may be applied to mediainformation instant messaging software such as WeChat and MiTalk. Theinstant messaging software may be installed on a terminal or a mobileterminal such as a mobile phone, a personal PC computer, or a PAD.

A person of ordinary skill in the art may be aware that, in combinationwith the examples described in the embodiments disclosed in thisspecification, units, algorithms and method steps may be implemented bya combination of computer software and electronic hardware. Whether thefunctions are performed by hardware or software depends on particularapplications and design constraint conditions of the technicalsolutions. A person skilled in the art may use different methods toimplement the described functions for each particular application, butit should not be considered that the implementation goes beyond thescope of the present invention.

It may be clearly understood by a person skilled in the art that, forthe purpose of convenient and brief description, for a detailed workingprocess of the foregoing server and unit, refer to a correspondingprocess in the foregoing method embodiments, and details are notdescribed herein again.

In the several embodiments provided in the present application, thedisclosed server and method may be implemented in other manners. Forexample, the described server embodiment is merely an example. Forexample, the unit division is merely logical function division and maybe other division in actual implementation. For example, a plurality ofunits or components may be synthesized or integrated into anothersystem, or some features may be ignored or not performed. In addition,the displayed or discussed mutual couplings or direct couplings orcommunication connections may be implemented by using some userinterfaces. The indirect couplings or communication connections betweenthe apparatuses or units may be implemented in electronic, mechanical,or other forms.

The units described as separate parts may or may not be physicallyseparate, and parts displayed as units may or may not be physical units,may be located in one position, or may be distributed on a plurality ofnetwork units. A part or all of the units may be selected according toactual needs to achieve the objectives of the solutions of theembodiments of the present invention.

In addition, functional units in the embodiments of the presentinvention may be integrated into one processing unit, or each of theunits may exist alone physically, or two or more units are integratedinto one unit.

A person of ordinary skill in the art may understand that all or some ofthe steps of the method embodiments may be implemented by a programinstructing relevant hardware. The program may be stored in a computerreadable storage medium. When the program runs, the steps of the methodembodiments are performed. The foregoing storage medium includes: anymedium that can store program code, such as a ROM, a RAM, a magneticdisk, or an optical disc.

The foregoing descriptions are merely specific implementations of thepresent invention, but are not intended to limit the protection scope ofthe present invention. Any variation or replacement readily figured outby a person skilled in the art within the technical scope disclosed inthe present invention shall fall within the protection scope of thepresent invention. Therefore, the protection scope of the presentinvention shall be subject to the protection scope of the claims.

1. A method for communication between users of a group chat application,comprising: invoking, by a terminal, the group chat application;displaying, by the terminal, a user interface of the group chatapplication, wherein the displayed user interface includes userinterface elements corresponding to a plurality of audio messagesexchanged between a user of the terminal and one or more other users,wherein the user interface elements of the displayed user interfaceinclude a first visual representation of speech information sent by theuser of the terminal, a second visual representation of speechinformation received by the terminal from a second user, and a firstswitching function control corresponding to the first visualrepresentation; receiving, by the terminal, a first user input from theuser of the terminal corresponding to the first switching functioncontrol; and after receiving the first user input, modifying, by theterminal, the displayed user interface of the group chat application tofurther display first feature information with the first visualrepresentation, wherein the first feature information comprises anexpression of a user mood corresponding to the first visualrepresentation.
 2. The method according to claim 1, further comprising:receiving, by the terminal, a second user input corresponding to thefirst switching function control; and after receiving the second userinput, modifying, by the terminal, the displayed user interface of thegroup chat application to cease display of the first featureinformation.
 3. The method according to claim 1, further comprising:receiving, by the terminal from a server, an audio bit streamcorresponding to the speech information from the second user.
 4. Themethod according to claim 1, wherein the first and second visualrepresentations are displayed with respective identifications oforiginating users corresponding to the first and second visualrepresentations.
 5. The method according to claim 1, wherein a selectionof the first visual representation results in the speech informationsent by the user of the terminal being played at the terminal, andwherein a selection of the second visual representation results in thespeech information received by the terminal from the second user beingplayed at the terminal.
 6. The method according to claim 1, wherein thefirst feature information overlaps with the first visual representationon the modified displayed user interface of the group chat application.7. The method according to claim 1, wherein the group chat applicationfacilitates exchange of audio messages between more than two users. 8.The method according to claim 1, wherein the user interface elements ofthe displayed user interface further include a second switching functioncontrol corresponding to the second visual representation.
 9. The methodaccording to claim 1, wherein second feature information comprising anexpression of a user mood corresponding to the speech informationreceived by the terminal from the second user is displayedsimultaneously with the first feature information.
 10. The methodaccording to claim 1, wherein the speech information sent by the user ofthe terminal does not include the expression of the user mood.
 11. Amethod for communication between users of a group chat application,comprising: invoking, by a terminal, the group chat application;displaying, by the terminal, a user interface of the group chatapplication, wherein the displayed user interface includes a firstvisual representation of a first message sent by a user of the terminal,a second visual representation of a second message received by theterminal from a second user, and a first switching function controlcorresponding to the first visual representation; receiving, by theterminal, a first user input corresponding to the first switchingfunction control; and after receiving the first user input, modifying,by the terminal, the displayed user interface of the group chatapplication to further display first feature information with the firstvisual representation, wherein the first feature information comprisesan expression of a user mood corresponding to the first visualrepresentation of the first message sent by the user of the terminal.12. The method according to claim 11, wherein the first featureinformation is obtained based on analysis of the first message.
 13. Themethod according to claim 11, further comprising: receiving, by theterminal, a second user input corresponding to the first switchingfunction control; and in response to the second user input, modifying,by the terminal, the displayed user interface of the group chatapplication to cease display of the first feature information.
 14. Themethod according to claim 11, wherein the first feature informationoverlaps with the first visual representation of the first message onthe modified displayed user interface of the group chat application. 15.The method according to claim 11, wherein the group chat applicationfacilitates exchange of messages between more than two users.
 16. Anon-transitory computer-readable medium having processor-executableinstructions stored thereon for facilitating communication between usersof a group chat application, wherein the processor-executableinstructions, when executed, facilitate: invoking the group chatapplication on a terminal; displaying a user interface of the group chatapplication, wherein the displayed user interface includes a firstvisual representation of a first message sent by a user of the terminal,a second visual representation of a second message received by theterminal from a second user, and a first switching function controlcorresponding to the first visual representation; receiving a first userinput corresponding to the first switching function control; afterreceiving the first user input, modifying the displayed user interfaceof the group chat application to further display first featureinformation with the first visual representation, wherein the firstfeature information comprises an expression of a user mood correspondingto the first visual representation of the first message sent by the userof the terminal.
 17. The non-transitory computer-readable mediumaccording to claim 16, wherein the processor-executable instructions,when executed, further facilitate: obtaining the first featureinformation based on analysis of the first message.
 18. Thenon-transitory computer-readable medium according to claim 16, whereinthe processor-executable instructions, when executed, furtherfacilitate: receiving a second user input corresponding to the firstswitching function control; and in response to the second user input,modifying the displayed user interface of the group chat application tocease display of the first feature information.
 19. The non-transitorycomputer-readable medium according to claim 16, wherein the firstfeature information overlaps with the first visual representation of thefirst message on the modified displayed user interface of the group chatapplication.
 20. The non-transitory computer-readable medium accordingto claim 16, wherein the group chat application facilitates exchange ofmessages between more than two users.